package com.luch.controller;

import com.sun.org.apache.xpath.internal.operations.Mod;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * Creator lh on 2017/8/14 16:25.
 * Email:luchefg@gmail.com
 * Description:
 */
@RestController
public class IndexController {

    @RequestMapping(value = "/index",method = RequestMethod.GET)
    public ModelAndView sayHi(){
        return new ModelAndView("index");
    }

    @RequestMapping(value = "/blog",method = RequestMethod.GET)
    public ModelAndView perBlog(){
        return new ModelAndView("index1");
    }
}
